# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

DESCRIPTION="Archive of packetstorm exploits"
HOMEPAGE="http://packetstormsecurity.net"
IUSE="1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 +2010 +2011 +2012"

#Use yearly archivers
SRC_URI="1999? ( http://dl.packetstormsecurity.net/9912-exploits/1999-exploits.tgz )
	2000? ( http://dl.packetstormsecurity.net/0012-exploits/2000-exploits.tgz )
	2001? ( http://dl.packetstormsecurity.net/0112-exploits/2001-exploits.tgz )
	2002? ( http://dl.packetstormsecurity.net/0212-exploits/2002-exploits.tgz )
	2003? ( http://dl.packetstormsecurity.net/0312-exploits/2003-exploits.tgz )
	2004? ( http://dl.packetstormsecurity.net/0412-exploits/2004-exploits.tgz )
	2005? ( http://dl.packetstormsecurity.net/0512-exploits/2005-exploits.tgz )
	2006? ( http://dl.packetstormsecurity.net/0612-exploits/2006-exploits.tgz )
	2007? ( http://dl.packetstormsecurity.net/0712-exploits/2007-exploits.tgz )
	2008? ( http://dl.packetstormsecurity.net/0812-exploits/2008-exploits.tgz )
	2009? ( http://dl.packetstormsecurity.net/0912-exploits/2009-exploits.tgz )
	2010? ( http://dl.packetstormsecurity.net/1012-exploits/2010-exploits.tgz )
	2011? ( http://dl.packetstormsecurity.net/1112-exploits/2011-exploits.tgz )
	2012? ( http://dl.packetstormsecurity.net/1212-exploits/2012-exploits.tgz )"

LICENSE="HPND"
SLOT="2012"
KEYWORDS="amd64 x86 arm"

DEPEND=""
RDEPEND="!app-exploits/packetstormexploits:0"

S="${WORKDIR}"

QA_PREBUILT="/usr/share/exploits/packetstormexploits/0001-exploits/bnc246
		/usr/share/exploits/packetstormexploits/0212-exploits/kadmin
		/usr/share/exploits/packetstormexploits/9902-exploits/SDI-lsof
		/usr/share/exploits/packetstormexploits/0204-exploits/7350fun"

src_install() {
	insinto /usr/share/exploits/${PN}/
	doins -r *
}
